package netGaming;

import gameBasicElements.*;

import java.io.*;

/**
 * @author Wojciech Łopata
 *
 */

public class ClientDataSender
{
	private ObjectOutputStream output;
	
	public ClientDataSender(OutputStream outputStream) throws IOException
	{
		output = new ObjectOutputStream(outputStream);
	}
	
	public synchronized void sendNewMove(Position pos) throws IOException
	{
		output.writeObject(ClientMessageType.MOVE_INFO);
		output.writeObject(pos);
	}
}
